Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat/#113] CrewJoin API 개발 완료 #124

Merged
merged 2 commits into from
Jul 7, 2023
Merged

Conversation

parkhj0423
Copy link
Member

PR 요약

CrewMake로 만든 크루의 Code를 통해 다른 크루에 참여하는 CrewJoin API를 개발하였습니다.
하지만 아직 서버쪽에서 내가만든 크루에 내가 코드를 통해 참여하게될 경우의 엣지케이스를 처리하지않아 2차수정이 필요합니다.

📌 변경 사항

✅ PR check list

Linked Issue

close #113

Copy link
Member

@mooyoung2309 mooyoung2309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 !

Comment on lines +22 to +28
public static func joinCrew(_ code: String) -> Endpoint<CrewResponseDTO> {
let accessToken = KeyChainStore.shared.load(property: .accessToken)

return Endpoint(path: "crews/join/\(code)",
httpMethod: .post,
headers: ["Authorization" : "Bearer \(accessToken)"])
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p5;

매 요청마다 auth가 필요하다면, accessToken을 Endpoint 내부에서 처리하는 방식은 어떤가요 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NetworkProvider 쪽에 아예 박아버리려다가 accessToken 없이 헤더를 넣어야하는 케이스도 혹시 생길까봐 유동적으로 넣을 수 있도록 넣어놨어

Copy link
Collaborator

@derrickkim0109 derrickkim0109 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어!

@mooyoung2309 mooyoung2309 merged commit 31884f7 into develop Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] Home API
3 participants